package com.ljx.thread.thread02;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2022/10/31 14:46
 * @Version 1.0
 */
public class MyRunAble implements Runnable{
	// 第二种创建线程的方式实现Runnable接口
	@Override
	public void run() {
		for (int i = 0; i < 20; i++) {
			System.out.println(Thread.currentThread().getName()+"线程");

		}
	}
}
